package com.zhouyx.userservice.mapper;

import com.zhouyx.userservice.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @title: UserMapper
 * @Author: max.zhou1
 * @Date: 2024/9/2 22:27
 * @Version: 1.0
 **/
@Mapper
public interface UserMapper {

    List<User> list();

    Integer add(User user);

    Integer update(User user);

    Integer deleteById(Long id);

    User getById(Long id);
}
